package org.springcloud.wisdom.spring_01_canteen.dishes.fordishes;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("wisdom.dishes")
public class Dishes {
    //主键
    @TableId(type = IdType.AUTO,value = "wisdom.dishes.did")
    private Integer did;
    //菜名
    @TableField("wisdom.dishes.dname")
    private String dname;
    //类型
    @TableField("wisdom.dishes.dtype")
    private String dtype;
    //照片
    @TableField("wisdom.dishes.dphotourl")
    private String dphotourl;
    //价格
    @TableField("wisdom.dishes.dprice")
    private String dprice;
    //主要食材
    @TableField("wisdom.dishes.dfood")
    private String dfood;
    //状态
    @TableField("wisdom.dishes.status")
    private Integer status;
    //外键
    @TableField("wisdom.dishes.mallid")
    private Integer mallid;
    @TableField("wisdom.dishes.isdel")
    private String isdel;
    //mall表中的mname
    @TableField(exist = false)
    private String mname;
}
